MyID=$(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id)
ServerID=$(cat conf/instanceServer.conf | grep $MyID | awk {'print $2'})
ServerIP=$(cat conf/servers.conf | grep $ServerID | awk {'print $2'})
PrisMWVersion=$(cat conf/servers.conf | grep $ServerID | awk {'print $4'})
JobID=$(cat conf/servers.conf | grep $ServerID | awk {'print $8'})
MyIP=$(curl http://myip.dnsomatic.com)

echo "$PrisMWVersion $MyIP $ServerIP - $MyID $ServerID $JobID"
#javac -cp .:$PrisMWVersion tileStyle/*.java tileStyle/Prism/*.java tileStyle/Prism/events/*.java
#java -cp .:$PrisMWVersion tileStyle.TileStyleStarter client $MyIP $ServerIP

java -jar Mahjong_quiet.jar client $MyIP $ServerIP
